package com.ehe.security.pojo.dto.appclient;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 客户端应用 修改密码DTO
 * @author jerry
 */
@ApiModel(value = "客户端应用 修改密码DTO", description = "客户端应用 修改密码DTO")
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
public class AppClientSecret {

    /** 原密码 */
    @ApiModelProperty(value = "原密码", position = 12, required = true)
    @NotBlank
    @Size(min = 6, max = 18)
    private String oldSecret;

    /** 新密码 */
    @ApiModelProperty(value = "新密码", position = 14, required = true)
    @NotBlank
    @Size(min = 6, max = 18)
    private String newSecret;

}